package com.example.kingdee.jstSync;

import com.example.kingdee.dto.PurchaseSyncDto;
import com.example.kingdee.dto.SyncDto;
import com.example.kingdee.entity.SyncLog;
import com.example.kingdee.jstSync.entity.JstResult;

import java.util.List;

/**
 * 聚水潭单据同步抽象类
 */
public abstract class JstSyncAbstract {
    //查询单据总页数
    public abstract int getOrderInfoPage(SyncDto syncDto, PurchaseSyncDto purchaseSyncDtoPage);
    //查询聚水潭数据
    public abstract JstResult selectJstResult(SyncDto syncDto, PurchaseSyncDto purchaseSyncDto);
    //将单据同步到云星空
    public abstract void kingdeeSync(SyncDto syncDto, JstResult jstResult);

    protected abstract void insertSyncLog(SyncDto syncDto, SyncLog syncLog, boolean isSucceed);
}
